package com.wngbms.feigndemo.feign;

import com.wngbms.feigndemo.api.LoginService;
import com.wngbms.feigndemo.controller.LoginController;
import feign.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "loginClientNative")
public interface LoginClientNative {

    @PostMapping("/login")
    Response login(@RequestBody LoginController.LoginReq loginReq);


}
